#include<iostream>
#include<string>
const int N = 1e6 + 10;
int a[N], b[N], c[N];
using namespace std;
int main()
{
	string s1, s2;cin >> s1 >> s2;
	int la = s1.size();int lb = s2.size();int lc = la + lb;
	for (int i = 0; i < la; i++)
	{
		a[i] = s1[la - i - 1] - '0';
	}
	for (int i = 0; i < lb; i++)
	{
		b[i] = s2[lb - i - 1] - '0';
	}
	for (int i = 0; i < la; i++)
	{
		for (int j = 0;j < lb;j++)
		{
			c[i + j] += a[i] * b[j];
		}
	}
	for (int i = 0; i < lc; i++)
	{
		c[i + 1] += c[i] / 10;
		c[i] %= 10;
	}
	while (c[lc - 1] == 0 && lc > 1) lc--;
	for (int i = lc - 1; i >= 0; i--)
	{
		cout << c[i];
	}
	return 0;
}